package com.lscdu.gulimall.ruoyi_springboot.service.impl;

import com.lscdu.gulimall.ruoyi_springboot.bean.login.SysUser;
import com.lscdu.gulimall.ruoyi_springboot.mapper.SysUserMapper;
import com.lscdu.gulimall.ruoyi_springboot.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 啊昌
 * @date 2024/9/9 15:47
 * SysUserServiceImpl 用户 业务层处理
 */
@Service
public class SysUserServiceImpl  implements ISysUserService {
	@Autowired
	private SysUserMapper userMapper;
	@Override
	public SysUser selectUserByUserName(String userName) {
		// 查询用户
		SysUser sysUser = userMapper.selectUserByUserName(userName);
		return sysUser;
	}

	@Override
	public int updateUserProfile(SysUser user) {
		return userMapper.updateUser(user);
	}
}
